package 抽象类;

public class dog extends Anamil {
    //父类的抽象方法一定要在子类重写
    @Override
    public void run() {
        System.out.println(getName()+"跑得飞快");
    }

    public dog(String name) {
        super(name);
    }
}
